<template>
  <div>
    <h3 style="font-weight:600;font-size:22px;margin-top: -10px;">订单信息</h3>
    <el-form :model="formData" label-width="120px">
     <el-row>
       <el-form-item label="产品名称" prop="productName" >
         <el-input placeholder="产品名称" v-model="formData.productName"></el-input>
       </el-form-item>
     </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="申请人" prop="createBy" >
            <el-input placeholder="申请人" v-model="formData.createBy" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="联系电话" prop="telPhone" >
            <el-input placeholder="产品名称" v-model="formData.telPhone||'暂无'" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
       <el-col  :span="12">
         <el-form-item label="访问信息" prop="buyNum" >
           <el-input placeholder="数量" v-model="formData.buyNum"></el-input>
         </el-form-item>
       </el-col>
        <el-col :span="12">
          <el-select v-model="formData.buyType" class="m-2" placeholder="购买方式" size="large">
            <el-option
              v-for="item in buyOptions"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            />
          </el-select>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="使用信息" prop="useNum" >
            <el-input placeholder="数量" v-model="formData.useNum"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-select v-model="formData.useType" class="m-2" placeholder="使用方式" size="large">
            <el-option
              v-for="item in useOptions"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            />
          </el-select>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="数据访问确权" prop="dataEnsureRightType" >
            <el-radio v-model="formData.dataEnsureRightType"  :label=1>需要</el-radio>
            <el-radio v-model="formData.dataEnsureRightType" :label=0>不需要</el-radio>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="数据自由共享" prop="dataFreedomType" >
            <el-radio v-model="formData.dataFreedomType"  :label=1>允许A</el-radio>
            <el-radio v-model="formData.dataFreedomType"  :label=0>不允许</el-radio>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="订单总价" prop="customerProductPrice" >
          <el-input placeholder="订单总价" v-model="formData.customerProductPrice"></el-input>
        </el-form-item>
      </el-row>
<!--      <el-row>-->
<!--        <el-form-item label="审核意见" prop="tableNickName" >-->
<!--          <el-input placeholder="审核意见" v-model="formData.tableNickName"></el-input>-->
<!--        </el-form-item>-->
<!--      </el-row>-->
    </el-form>
  </div>
</template>

<script>
export default {
  name: "OrderInfo",
  props:{
    formData:Object
  },
  data() {
    return {
      useOptions: [
        {
       value:0,
        label:'次数'
      },
        {
          value:4,
          label:'天'
        }
        ],
      buyOptions: [
        {
          value:0,
          label:'次数'
        },
        {
          value:2,
          label:'记录数'
        },
        {
          value:4,
          label:'天'
        }
      ],
    };
  },
  created() {

  },
  methods: {

  }
};
</script>
<style scoped>
.el-form-item{
  margin-bottom: 15px !important;
}
</style>
